﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lesson18_code1 : MonoBehaviour
{
    // Start is called before the first frame update
    private Texture tex;
    void Start()
    {
        ResourcesMgr.Instance.LoadRes<Texture>("Tex/bk", (obj) =>
        {
            tex = obj;
        });
    }

    void OnGUI()
    {
        if (tex)
        {
            GUI.DrawTexture(new Rect(0, 0, 100, 100), tex);
        }
    }
}
